$(document).ready(function(){
	var content_mid = $(".content_mid");
	var ul = content_mid.find("ul")
	var li = content_mid.find("ul li");
	var span = content_mid.find(".span span")
    //console.log(span.length)
	var timer = null;
	var count = 0;
	span.on("click",function(){
		$(this).addClass('frist').siblings('span').removeClass('frist');
		count = $(this).index();
		ul.animate({
			right: 750*count
		});
	});
	//定时器
	timer = setInterval(function(){
		count ++ ;
//		console.log(count)
		if(count == span.length){count = 0};span.eq(count).trigger("click")
	},2000);
});
